<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>window-hash</title>
</head>
<body>
  <h1>window-hash c.html</h1>
  <script>
    // 收到 a 发过来的 hash
    console.log('c 收到', window.location.hash);

    let iframe = document.createElement('iframe');
    iframe.src = 'http://localhost:3000/b.html#name=c';
    document.body.appendChild(iframe);
  </script>
</body>
</html>